import React from 'react'
import "../styles/index.less";

export default class Error extends React.Component {
  static getInitialProps({ res, err }) {
    const statusCode = res ? res.statusCode : err ? err.statusCode : null;
    return { statusCode }
  }
  
  render() {
    return (
      <div style={{width:"100%",height:900,lineHeight:"900px",textAlign:"center",fontSize: "16px"}}>
        该页面不存在, <a onClick={() => {
          window.location.href = window.location.origin;
        }}>返回首页</a>
      </div>
    )
  }
}